// 长轮询服务器
const express = require('express')
const app = express()
app.listen(3000, '0.0.0.0')

app.use(express.static('www'))

app.get('/ajax', (req, res) => {

  let timer = setInterval(() => {

    clearInterval(timer)
    res.send('aaaa')

  }, 5000);


})

